﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional

namespace MagicVilla_API.Migrations
{
    /// <inheritdoc />
    public partial class AddVillaValues : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.InsertData(
                table: "Villas",
                columns: new[] { "Id", "Amenity", "CreatedDate", "Details", "ImageUrl", "Name", "Occupancy", "Rate", "Sqft", "UpdatedDate" },
                values: new object[,]
                {
                    { 1, "", new DateTime(2025, 11, 12, 14, 11, 4, 519, DateTimeKind.Local).AddTicks(5451), "This is the Royal Villa", "https://cf.bstatic.com/xdata/images/hotel/max1024x768/518127419.jpg?k=7c223a710a575afb8e74426da930b9598238de324285a6e8cd0eabd5d31ebe97&o=", "Royal Villa", 4, 200.0, 550, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) },
                    { 2, "", new DateTime(2025, 11, 12, 14, 11, 4, 531, DateTimeKind.Local).AddTicks(2658), "This is the Premium Pool Villa", "https://pix10.agoda.net/hotelImages/115/1158987/1158987_16010616210038913309.jpg?ca=6&ce=1&s=1024x768", "Premium Pool Villa", 4, 300.0, 550, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) },
                    { 3, "", new DateTime(2025, 11, 12, 14, 11, 4, 531, DateTimeKind.Local).AddTicks(2674), "This is the Luxury Pool Villa", "https://statics.dujiabieshu.com/statics/manager/ueditor/php/upload/image/20190918/fee72e01fc44e1db0b94e05ce532c8fe621372.jpg", "Luxury Pool Villa", 4, 400.0, 750, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) },
                    { 4, "", new DateTime(2025, 11, 12, 14, 11, 4, 531, DateTimeKind.Local).AddTicks(2676), "This is the Diamond Villa", "https://img0.baidu.com/it/u=3305465566,3693572979&fm=253&app=138&f=JPEG?w=1067&h=800", "Diamond Villa", 4, 550.0, 900, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) },
                    { 5, "", new DateTime(2025, 11, 12, 14, 11, 4, 531, DateTimeKind.Local).AddTicks(2678), "This is the Diamond Pool Villa", "https://img0.baidu.com/it/u=521016149,2660609017&fm=253&app=138&f=JPEG?w=1067&h=800", "Diamond Pool Villa", 4, 600.0, 1100, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) }
                });
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DeleteData(
                table: "Villas",
                keyColumn: "Id",
                keyValue: 1);

            migrationBuilder.DeleteData(
                table: "Villas",
                keyColumn: "Id",
                keyValue: 2);

            migrationBuilder.DeleteData(
                table: "Villas",
                keyColumn: "Id",
                keyValue: 3);

            migrationBuilder.DeleteData(
                table: "Villas",
                keyColumn: "Id",
                keyValue: 4);

            migrationBuilder.DeleteData(
                table: "Villas",
                keyColumn: "Id",
                keyValue: 5);
        }
    }
}
